var token = localStorage.getItem('tok');
$.ajax({
    type: "GET",
    url: $host+'/api/app/person/messageList',
    data:{
        "page":1,
        "rows":5,
        "token":token
    },
    async: true,
    dataType:'json',
    success: function(result){
        console.log(result);
        var data = result.data;
        var str="";
        if(!data){
            return
        }
        for(var i = 0;i<data.length;i++){
            var timer=new Date(parseInt(data[i].createTime)).toLocaleString();　
            str += `
            <div class="information">
                <div class="date">${timer}</div>
            <div class="box">
                <span class="l">${data[i].title}</span>
                <p class="l">${data[i].content}</p>
            </div>
            </div> `
        }
        $(".content").html(str)
    }
});
//点击返回
$('.xxzxfh').click(function(){
    window.location.href="index.html?token="+token;
})